<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>图片悬停切换成文字css3特效</title>
    <style>
        /* 公共样式表css */
        html,
        body {
            color: #333;
            margin: 0;
            height: 100%;
            font-family: "Myriad Set Pro", "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
        }

        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        a {
            text-decoration: none;
            color: #000;
        }

        img {
            border: 0;
        }

        body {
            background: #fff;
            color: #666;
            font: 12px/150% Arial, Verdana, "microsoft yahei";
        }

        html,
        body,
        div,
        dl,
        dt,
        dd,
        ol,
        ul,
        li,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        blockquote,
        pre,
        button,
        fieldset,
        form,
        input,
        legend,
        textarea,
        th,
        td {
            margin: 0;
            padding: 0;
        }

        a {
            text-decoration: none;
            color: #08acee;
        }

        button {
            outline: 0;
        }

        img {
            border: 0;
        }

        button,
        input,
        optgroup,
        select,
        textarea {
            margin: 0;
            font: inherit;
            color: inherit;
            outline: none;
        }

        li {
            list-style: none;
        }

        a {
            color: #666;
        }

        a:hover {
            color: #ffffff;
        }

        .clearfix::after {
            clear: both;
            content: ".";
            display: block;
            height: 0;
            visibility: hidden;
        }

        .clearfix {}

        /* 必要布局样式css */
        .comm-box {
            width: 100%;
            height: auto;
            background: #03c397;
            padding: 80px 0;
        }

        .comm-header h3 {
            font-size: 28px;
            color: #fff;
            text-shadow: 0 3px 9px rgba(0, 0, 0, .25);
            height: 42px;
            /* padding: 25px 0 20px; */
            text-align: center;
            font-weight: inherit;
        }

        .comm-content {
            width: 1120px;
            padding: 15px 30px;
            margin: 0 auto;
            position: relative;
        }

        .comm-content-list {
            position: relative;
            zoom: 1;
        }

        .comm-content-list li {
            width: 160px;
            height: 220px;
            float: left;
            position: relative;
            margin: 10px 0 10px 52px;
        }

        .comm-list-item {
            position: absolute;
            left: 0;
            top: 0;
            width: 142px;
            height: 202px;
            background-color: #fff;
            background-color: rgba(255, 255, 255, .8);
            padding: 9px;
        }

        .comm-list-item img {
            width: 100%;
        }

        .comm-list-cont {
            position: absolute;
            left: 0;
            top: 0;
            width: 160px;
            height: 220px;
            opacity: 0;
            filter: alpha(opacity=0);
            overflow: hidden;
            -webkit-transition: all .15s;
            -moz-transition: all .15s;
            -ms-transition: all .15s;
            -o-transition: all .15s;
        }

        .comm-list-text {
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -90px;
            margin-top: -120px;
            width: 160px;
            height: 220px;
            padding: 12px;
            border: 1px solid #282b29;
            background: #fff;
            color: #444;
        }

        .comm-go-home {
            display: block;
            text-align: center;
            -webkit-border-radius: 1px;
            -moz-border-radius: 1px;
            border-radius: 1px;
            width: 135px;
            height: 37px;
            line-height: 37px;
            background-color: #00b38a;
            color: #fff;
            font-size: 13px;
            position: absolute;
            bottom: 15px;
        }

        .comm-list-item:hover .comm-list-cont {
            width: 180px;
            height: 240px;
            left: -10px;
            top: -10px;
            opacity: .95;
            filter: alpha(opacity=95);
            f
            
        }

        .comm-list-item p {
            line-height: 22px;
            font-family: microsoft Yahei;
            text-align: center;
            padding: 0 3px;
            margin-top: 13px;
            font-size: 14px;
        }

        .comm-content-list li .comm-list-text p {
            line-height: 22px;
            font-family: microsoft Yahei;
            font-size: 12px;
            text-align: left;
            margin: 0;
        }

    </style>
</head>

<body>
    <div class="comm-box">
        <div class="comm-header">
            <h3>值得信赖的公司</h3>
        </div>
        <div class="comm-content">
            <ul class="comm-content-list clearfix">
                <li>
                    <div class="comm-list-item"><img src="images/logo1.jpg" alt="">
                        <p>美图公司</p>
                        <div class="comm-list-cont">
                            <div class="comm-list-text">
                                <p>美图，让更多人变美！2016年12月15日，美图公司在香港联合交易所（“联交所”）主板挂牌上市，股票代码1357。</p>
                                <div><a href="#" class="comm-go-home">访问公司主页</a></div>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="comm-list-item"><img src="images/logo2.jpg" alt="">
                        <p>京东集团</p>
                        <div class="comm-list-cont">
                            <div class="comm-list-text">
                                <p>京东（股票代码：JD），中国自营式电商企业，创始人刘强东担任京东集团董事局主席兼首席执行官。旗下设有京东商城</p>
                                <div><a href="#" class="comm-go-home">访问公司主页</a></div>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="comm-list-item"><img src="images/logo3.jpg" alt="">
                        <p>苏宁易购</p>
                        <div class="comm-list-cont">
                            <div class="comm-list-text">
                                <p>苏宁易购，是苏宁易购集团股份有限公司旗下新一代B2C网上购物平台，现已覆盖传统家电,3C电器、日用百货等品类</p>
                                <div><a href="#" class="comm-go-home">访问公司主页</a></div>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="comm-list-item"><img src="images/logo4.jpg" alt="">
                        <p>小米科技</p>
                        <div class="comm-list-cont">
                            <div class="comm-list-text">
                                <p>北京小米科技有限责任公司成立2010年3月3日，是一家专注于智能硬件和电子产品研发的移动互联网公司。“为发烧而生”</p>
                                <div><a href="#" class="comm-go-home">访问公司主页</a></div>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="comm-list-item"><img src="images/logo5.jpg" alt="">
                        <p>锤子科技</p>
                        <div class="comm-list-cont">
                            <div class="comm-list-text">
                                <p>锤子科技是一家制造移动互联网终端设备的公司，公司的使命是用完美主义的工匠精神，打造用户体验一流的数码消费类产品</p>
                                <div><a href="#" class="comm-go-home">访问公司主页</a></div>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</body>

</html>